package com.zsrt.day20170419.am.interfaces;

import org.junit.Test;

/**
*@author jzh
*@创建时间 2017年4月19日上午11:48:08
*类说明：
*/
public class DaibugongjuTest {
	
	@Test
	public void daibugongjuImpl(){
		Daibugongju car=new SaoZhou();
		car.setX(10);
		car.setY(10);
		
		int sum = car.cal(car);
		System.out.println(sum);
		
		SaoZhou saoZhou=new SaoZhou();
		saoZhou.setX(10);
		saoZhou.setY(10);
		
		int sum1 = car.cal(saoZhou);
		System.out.println(sum1);
	}

}
